loadi1 0xab
mov $2 $4
mov $3 $4
loadi1 0x0
mov $0 $4
loadi1 0x2
mov $6 $4
jal fib
halt
fib:
blt $6 $0 return_1
loadi1 0x2
mov $12 $4
blteq $6 $12 return_2
loadi1 0x1D
mov $12 $4
beq $6 $12 return_3
loadi1 0x1E
mov $12 $4
beq $6 $12 return_4
loadi1 0x30
mov $12 $4
beq $6 $12 return_5
loadi1 0x31
mov $12 $4
beq $6 $12 return_6
store $6 $2 0x1
subi $2 0x1
subi $6 0x1
jal fib
load $6 $2 0x1
addi $6 0x1
store $9 $2 0x1
subi $2 0x1
jal fib
load $10 $2 0x1
addi $2 0x1
add $9 $10 $9
ret
return_1:
loadi1 0xEEF
loadi2 0xADB
loadi3 0x3DE
mov $9 $4
ret
return_2:
loadi1 0x1
mov $9 $4
ret
return_3:
loadi1 0x8B5
loadi2 0x7D
mov $9 $4
ret
return_4:
loadi1 0x228
loadi2 0xCB
mov $9 $4
ret
return_5:
loadi1 0xA40
loadi2 0x8D0
loadi3 0x11E
mov $9 $4
ret
return_6:
loadi1 0xF21
loadi2 0xA62
loadi3 0x1CF
mov $9 $4
ret
